import jsonschema

data = {
    "data": "hello"
}

schema = {
    "type": "object",
    "properties": {
        "data": {"pattern": "[0-9]{11}"}
    }
}

result = jsonschema.validate(instance=data, schema=schema)
print(result)